package com.example.envatoandroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;

public class SplashActivity extends Activity {

	/*
	 * This variable holds Splash Delay time
	 */
	private static final int SPLASH_DELAY_TIME = 3*1000;
	private Handler handler;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_main);
		
		handler = new Handler();
		
		handler.postDelayed(new Runnable() {
			
			@Override
			public void run() {
				
				startActivity(new Intent(SplashActivity.this, LoginActivity.class));
				finish();
			}
		}, SPLASH_DELAY_TIME);
	}

//	@Override
//	public boolean onCreateOptionsMenu(Menu menu) {
//		// Inflate the menu; this adds items to the action bar if it is present.
//		getMenuInflater().inflate(R.menu.main, menu);
//		return true;
//	}

}
